package com.ruicar.afs.cloud.manage.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.contract.enums.ContractBusinessEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: Lee
 * @date 2020-08-22 06:00:13 
 * @description 短信验证码表 
 */
@Data
@Accessors(chain = true)
@TableName(value ="manage_verify_code", autoResultMap = true)
public class ManageVerifyCode extends BaseEntity<ManageVerifyCode> {

	/** 手机号 */
	@ApiModelProperty("手机号")
	private String phone;
	/** 业务类型 */
	@ApiModelProperty("业务类型")
	private ContractBusinessEnum contractBusiness;
	/** 验证码发送时间 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty("验证码发送时间")
	private Date verifyDate;
	/** 短信验证码 */
	@ApiModelProperty("短信验证码")
	private String verifyCode;

}
